<div class="sidebar layout-left bg-dark text-light">
	<div class="layout-title text-center border-bottom">
		<h4 class="pt-2">用户中心</h4>
	</div>
	<div class="mt-4">
		<ul class="menu">
			<li class="menu-item">
				<a href="{url ctrl=usercp/}" class="menu-link">
					<span class="menu-icon">
						<i class="fa fa-windows"></i>
					</span>
					<span class="menu-text">个人中心</span>

				</a>
			</li>
			<li class="menu-item">
				<a href="{url ctrl=pm/}" class="menu-link">
					<span class="menu-icon">
						<i class="fa fa-volume-up"></i>
					</span>
					<span class="menu-text">站内消息<!-- if $pm.total --><span class="text-danger">●</span><!-- /if --></span>
				</a>
			</li>
			<li class="menu-item has-sub">
				<a href="javascript:void(0);" class="menu-link menu-toggle">
					<span class="menu-icon">
						<i class="fa fa-user"></i>
					</span>
					<span class="menu-text">账号设置</span>
				</a>
				<ul class="menu-sub">
					<li class="menu-item">
						<a href="{url ctrl=usercp func=info/}" class="menu-link">
							<span class="menu-text">个人信息修改</span>
						</a>
					</li>
					<li class="menu-item">
						<a href="{url ctrl=usercp func=avatar/}" class="menu-link">
							<span class="menu-text">更换头像</span>
						</a>
					</li>
					<li class="menu-item">
						<a href="{url ctrl=usercp func=email/}" class="menu-link">
							<span class="menu-text">更换邮箱</span>
						</a>
					</li>
					<li class="menu-item">
						<a href="{url ctrl=usercp func=mobile/}" class="menu-link">
							<span class="menu-text">更换手机号</span>
						</a>
					</li>
					<li class="menu-item">
						<a href="{url ctrl=usercp func=passwd/}" class="menu-link">
							<span class="menu-text">密码修改</span>
						</a>
					</li>
					<li class="menu-item">
						<a href="{url ctrl=usercp func=destory/}" class="menu-link">
							<span class="menu-text">用户注销</span>
						</a>
					</li>
				</ul>
			</li>
			<li class="menu-item has-sub">
				<a href="#" class="menu-link menu-toggle">
					<span class="menu-icon">
						<i class="fa fa-steam"></i>
					</span>
					<span class="menu-text">社交服务</span>
				</a>
				<ul class="menu-sub">
					<li class="menu-item">
						<a href="{url ctrl=social func=homepage/}" class="menu-link">
							<span class="menu-text">主页装扮</span>
						</a>
					</li>
					<li class="menu-item">
						<a href="{url ctrl=social func=idol/}" class="menu-link">
							<span class="menu-text">
								我关注的
							</span>
						</a>
					</li>
					<li class="menu-item">
						<a href="{url ctrl=social func=fans/}" class="menu-link">
							<span class="menu-text">
								我的粉丝
							</span>
						</a>
					</li>
					<li class="menu-item">
						<a href="{url ctrl=social func=blacklist/}" class="menu-link">
							<span class="menu-text">
								黑名单
							</span>
						</a>
					</li>
				</ul>
			</li>
			<li class="menu-item has-sub">
				<a href="#" class="menu-link menu-toggle">
					<span class="menu-icon">
						<i class="fa fa-shopping-bag"></i>
					</span>
					<span class="menu-text">订单管理</span>
				</a>
				<ul class="menu-sub">
					<!-- if $sys.ctrl == 'order' && $sys.func == 'payment' && $session.user_id -->
					<li class="menu-item">
						<a href="{url ctrl=order func=payment id=$rs.id/}" class="menu-link">
							<span class="menu-text">订单付款</span>
						</a>
					</li>
					<!-- /if -->
					<!-- if $sys.ctrl == 'order' && $sys.func == 'payment' && !$session.user_id -->
					<li class="menu-item">
						<a href="{url ctrl=order func=payment sn=$rs.sn passwd=$rs.passwd/}" class="menu-link">
							<span class="menu-text">订单付款</span>
						</a>
					</li>
					<!-- /if -->
					<li class="menu-item">
						<a href="{url ctrl=order/}" class="menu-link">
							<span class="menu-text">我的订单</span>
						</a>
					</li>
					<!-- if $sys.ctrl == 'order' && $rs.id && $session.user_id -->
					<li class="menu-item">
						<a href="{if $get.sn}{url ctrl=order func=info sn=$rs.sn passwd=$rs.passwd/}{else}{url ctrl=order func=info id=$rs.id/}{/if}" class="menu-link">
							<span class="menu-text" style="text-indent:0.5em;">
								<span class="menu-icon"><i class="fa fa-info-circle"></i></span>
								明细
							</span>
						</a>
					</li>
					<li class="menu-item">
						<a href="{url ctrl=order func=log id=$rs.id/}" class="menu-link">
							<span class="menu-text" style="text-indent:0.5em;">
								<span class="menu-icon"><i class="fa fa-history"></i></span>
								日志
							</span>
						</a>
					</li>
					<li class="menu-item">
						<a href="{url ctrl=order func=comment id=$rs.id/}" class="menu-link">
							<span class="menu-text" style="text-indent:0.5em;">
								<span class="menu-icon"><i class="fa fa-comments-o"></i></span>
								评论
							</span>
						</a>
					</li>
					<!-- /if -->
					<!-- if $sys.ctrl == 'order' && $rs.id && !$session.user_id -->
					<li class="menu-item">
						<a href="{url ctrl=order func=info sn=$rs.sn passwd=$rs.passwd/}" class="menu-link">
							<span class="menu-text" style="text-indent:0.5em;">
								<span class="menu-icon"><i class="fa fa-info-circle"></i></span>
								明细
							</span>
						</a>
					</li>
					
					<li class="menu-item">
						<a href="{url ctrl=order func=log sn=$rs.sn passwd=$rs.passwd/}" class="menu-link">
							<span class="menu-text" style="text-indent:0.5em;">
								<span class="menu-icon"><i class="fa fa-history"></i></span>
								日志
							</span>
						</a>
					</li>
					<li class="menu-item">
						<a href="{url ctrl=order func=comment sn=$rs.sn passwd=$rs.passwd/}" class="menu-link">
							<span class="menu-text" style="text-indent:0.5em;">
								<span class="menu-icon"><i class="fa fa-comments-o"></i></span>
								评论
							</span>
						</a>
					</li>
					<!-- /if -->
					<li class="menu-item">
						<a href="{url ctrl=usercp func=address/}" class="menu-link">
							<span class="menu-text">收货地址</span>
						</a>
					</li>
					<!-- if $sys.ctrl == 'usercp' && $sys.func == 'address_setting' && !$id -->
					<li class="menu-item">
						<a href="{url ctrl=usercp func=address_setting/}" class="menu-link">
							<span class="menu-text">添加地址</span>
						</a>
					</li>
					<!-- /if -->
					<!-- if $sys.ctrl == 'usercp' && $sys.func == 'address_setting' && $id -->
					<li class="menu-item">
						<a href="{url ctrl=usercp func=address_setting id=$id/}" class="menu-link">
							<span class="menu-text">修改地址 #{$id}</span>
						</a>
					</li>
					<!-- /if -->
				</ul>
			</li>
			<!-- if $me.wealth -->				
			<li class="menu-item has-sub">
				<a href="{url ctrl=usercp func=wealth/}" class="menu-link menu-toggle">
					<span class="menu-icon">
						<i class="fa fa-jpy"></i>
					</span>
					<span class="menu-text">我的资产</span>
				</a>
				<ul class="menu-sub">
					<!-- loop from=$me.wealth key=$key value=$value id=$tmpid -->
					<li class="menu-item">
						<a href="{url ctrl=usercp func=wealth_log id=$value.id/}" class="menu-link">
							<span class="menu-text">{$value.title}</span>
						</a>
					</li>
					<!-- /loop -->
					<!-- if $sys.ctrl == 'payment' && $id && $rs -->
					<li class="menu-item">
						<a href="{url ctrl=payment id=$rs.id/}" class="menu-link">
							<span class="menu-text">在线充值</span>
						</a>
					</li>
					<!-- else -->
					<li class="menu-item">
						<a href="{url ctrl=payment/}" class="menu-link">
							<span class="menu-text">在线充值</span>
						</a>
					</li>
					<!-- /if -->
				</ul>
			</li>
			<!-- /if -->
			<!-- php:$list = project_groups() -->
			<!-- loop from=$list key=$k value=$v id=$idxx -->
			<li class="menu-item has-sub">
				<a href="#" class="menu-link menu-toggle">
					<span class="menu-icon">
						<i class="fa fa-th"></i>
					</span>
					<span class="menu-text">{$v.title}</span>
				</a>
				<ul class="menu-sub">
					<!-- loop from=$v.rslist key=$key value=$value id=$tmpid -->
					<li class="menu-item">
						<a href="{url ctrl=usercp func=list id=$value.identifier/}" class="menu-link">
							<span class="menu-text">{$value.title}</span>
						</a>
					</li>
					<!-- if $sys.ctrl == 'post' && $sys.func == 'index' && $page_rs.id == $value.id -->
					<li class="menu-item">
						<a href="{url ctrl=post id=$value.identifier/}" class="menu-link">
							<span class="menu-text" style="text-indent:0.5em">
								<span class="menu-icon"><i class="fa fa-pencil-square-o"></i></span>
								发布
							</span>
						</a>
					</li>
					<!-- /if -->
					<!-- if $sys.ctrl == 'post' && $sys.func == 'edit' && $page_rs.id == $value.id -->
					<li class="menu-item">
						<a href="{url ctrl=post func=edit id=$rs.id/}" class="menu-link">
							<span class="menu-text" style="text-indent:0.5em">
								<span class="menu-icon">
									<i class="fa fa-pencil-square-o"></i>
								</span>
								编辑
							</span>
						</a>
					</li>
					<!-- /if -->
					<!-- /loop -->
				</ul>
			</li>
			<!-- /loop -->
			<!-- php:$typelist = usercp_typelist() -->
			<!-- if $typelist -->
			<li class="menu-item has-sub">
				<a href="#" class="menu-link menu-toggle">
					<span class="menu-icon">
						<i class="fa fa-film"></i>
					</span>
					<span class="menu-text">媒体资源</span>
				</a>
				<ul class="menu-sub">
					<!-- loop from=$typelist key=$key value=$value id=$tmpid -->
					<li class="menu-item">
						<a href="{url ctrl=usercp func=media type=$key/}" class="menu-link">
							<span class="menu-text">
								{$value.title}
							</span>
						</a>
					</li>
					<!-- if $type == $key -->
					<li class="menu-item">
						<a href="{url ctrl=usercp func=media_add type=$type/}" class="menu-link">
							<span class="menu-text" style="text-indent:0.5em"><i class="fa fa-pencil"></i>添加</span>
						</a>
					</li>
					<!-- /if -->
					<!-- /loop -->
					
				</ul>
			</li>
			<!-- /if -->
			<li class="menu-item">
				<a href="{url ctrl=usercp func=introducer/}" class="menu-link">
					<span class="menu-icon">
						<i class="fa fa-share-alt"></i>
					</span>
					<span class="menu-text">分享推荐</span>
				</a>
			</li>
			<!-- if $sys.ctrl == 'usercp' && $sys.func == 'wealth' -->
			<li class="menu-item">
				<a href="{url ctrl=usercp func=wealth/}" class="menu-link">
					<span class="menu-icon">
						<i class="fa fa-expand"></i>
					</span>
					<span class="menu-text">财富中心</span>
				</a>
			</li>
			<!-- /if -->
		</ul>
	</div>
</div>